<#include "/common/layout.html"> 
<@layout title="123">
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
	var datagrid;
	var model_name = "/camera";
	var model_title="摄像头列表";

	$(function() {
		datagrid=$('#form_datagrid').datagrid({
		 	url:model_name+'/grid',
		 	columns:[[    
		        {field:'id',title:'编号',width:60,checkbox:true},
		        {field:'device_id',title:'设备id',width:100},
		        {field:'device_serial',title:'设备序列号',width:120},
		        {field:'device_name',title:'设备名称',width:100},
		        {field:'camera_id',title:'通道id',width:100},
		        {field:'camera_no',title:'通道号',width:120},
		        {field:'camera_name',title:'通道名称',width:100},
		        {field:'status',title:'是否在线',width:60,
		      		formatter:function(value,row,index){
			      		if(row.status==1){
			      			return "在线";
			      		}else{
			      			return "不在线";
			      		}
					}
				},
				{field:'is_shared',title:'分享状态',width:60,
		      		formatter:function(value,row,index){
			      		if(row.status==1){
			      			return "分享";
			      		}else{
			      			return "不分享";
			      		}
					}
				},
		        {field:'is_encrypt',title:'是否加密',width:60,
		      		formatter:function(value,row,index){
			      		if(row.status==1){
			      			return "加密";
			      		}else{
			      			return "不加密";
			      		}
					}
				},
				{field:'pic_url',title:'封面地址',width:200}
		    ]]
		})
	})
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>
</head>
<body  class="easyui-layout">
<div id="imgShow"  style="position: absolute;display:none;border: 4px #ccc solid ;z-index:10;background-color:#fff;padding:5px;">
<img src="" width="150px">
</div>
<div region="center" border="false">
	<table  id="form_datagrid" >   
	</table>
</div>
<div id="Dialog_"></div>
<div id="grid_toolbar">
<a href="javascript:void(0)" id="grid_toolbar_view" onclick="view();" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:true">查看</a>
<a href="javascript:void(0)"  onclick="datagrid.datagrid('reload');" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
<a href="javascript:void(0)"  onclick="datagrid.datagrid('clearSelections');" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true">取消选中</a>
</div>
</body>
</@layout>